package com.ruoyi.kjy.domain;/**
 * @InterfaceName: Announcement
 * @Description:
 * @Author: YourName
 * @Date: 2023-04-12
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ruoyi.common.mp.domain.CommonEntity;
import io.swagger.models.auth.In;
import lombok.Data;
import org.apache.ibatis.type.IntegerTypeHandler;

import java.util.List;

/**
 *@InterfaceName: Announcement
 *@Description:
 *@Author: lilirui
 *@Date: 2023-04-12
 */
@Data
@TableName(autoResultMap = true)
public class Announcement extends CommonEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;




    private String content;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<file> files;

    private String type;


    private Integer status;


    private String comment;

    private String reviewer;



    @Data
    public static class file{
        String name;
        String url;

        public file(String name, String url) {
            this.name = name;
            this.url = url;
        }

        public file() {
        }
    }
}
